<%@page import="com.fractalist.man.constants.ManConstants"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>权限分配</title>
<link rel="stylesheet" href="${ctx }/css/styles.css" type="text/css" />
<script type="text/javascript" src="${ctx }/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="${ctx }/js/jquery.form.js"></script>
<jsp:include page="/common/jscalendar.jsp"></jsp:include>
<style>
.tc a {
	color: red;
}
</style>
<script type="text/javascript">
	function savePurview() {
		$("#myForm").attr("action","${ctx}/isstSet/saveDispatch.action");
		$("#myForm").submit();
	}
	function backToList()
	{
		document.location.href = "${ctx}/isstSet/phpRoleList.action?rd="+ Math.random();;
	}
</script>
</head>
<body>
	<div id="wrapper">
		<div id="content_wrap">
			<div class="tabs_content">
				<div class="active_tab" id="tab1">
					<div id="table_wrapper" style="width: 100%; overflow: no;">
						<form id="myForm">
							<input type="hidden" id="groupId" name="groupId" value="${groupId}"/>
							<table class="table" cellpadding="0" cellspacing="0" >
								<thead>
									<tr>
										<th><b>请选择</b></th>
									</tr>
								</thead>
								<tbody id="listData">
									<tr>
										<td>
											<c:forEach var="item" items="${purviewList }">
												<div style="float: left; width:150px;">
													<c:if test="${!empty item.checked }">
														<input type="checkbox" name="purviewChk" checked="checked" value="${item.class }_${item.method }" />
													</c:if>
													<c:if test="${empty item.checked }">
														<input type="checkbox" name="purviewChk" value="${item.class }_${item.method }" />
													</c:if>
													${item.name }
												</div>
											</c:forEach>
										</td>
									</tr>
									<tr>
										<td>
											<input type="button" value="提交" onclick="savePurview();" />
											<input type="button" value="返回" onclick="backToList();" />
										</td>
									</tr>
								</tbody>
							</table>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>

